package IU;
import javax.swing.JFrame;
import javax.swing.JPanel;

import java.awt.BorderLayout;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.Component;
import javax.swing.border.LineBorder;
import Implementacao.Problema01;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;




public class TelaAmbiente2 extends JFrame {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public TelaAmbiente2() {
		super("Montanha de Chomsky");
		this.setUndecorated(true);
		this.setBounds(100, 100, 800, 600);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLocationRelativeTo(null);
		
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
		this.getContentPane().add(panel, BorderLayout.CENTER);
		panel.setLayout(new BorderLayout(0, 0));
		
		JPanel panelPrincipal = new JPanel();
		panelPrincipal.setBackground(Color.WHITE);
		panel.add(panelPrincipal);
		panelPrincipal.setLayout(null);
		
		
		JButton botaoSair = new JButton();
		botaoSair.setForeground(Color.WHITE);
		botaoSair.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
		botaoSair.setIcon(new ImageIcon("./Images/fechar-icon.png"));
		botaoSair.setBorderPainted(false);
		botaoSair.setContentAreaFilled(false);
		botaoSair.setToolTipText("Sair");
		botaoSair.setBounds(751, 11, 37, 38);
		panelPrincipal.add(botaoSair);
		
		JButton botaoMinimizar = new JButton();
		botaoMinimizar.setForeground(Color.WHITE);
		botaoMinimizar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setExtendedState(JFrame.ICONIFIED);
			}
		});
		botaoMinimizar.setContentAreaFilled(false);
		botaoMinimizar.setAlignmentX(Component.CENTER_ALIGNMENT);
		botaoMinimizar.setBackground(Color.WHITE);
		botaoMinimizar.setIcon(new ImageIcon("./Images/minimizar-icon.png"));
		botaoMinimizar.setBorderPainted(false);
		botaoMinimizar.setToolTipText("Minimizar");
		botaoMinimizar.setBounds(710, 11, 42, 38);
		panelPrincipal.add(botaoMinimizar);
		
		JButton btnNewButton = new JButton("Est\u00E1gio 01");
		btnNewButton.setBackground(Color.WHITE);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
			}
		});
		btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnNewButton.setBounds(34, 146, 127, 80);
		panelPrincipal.add(btnNewButton);
		
		JLabel lblAmbiente = new JLabel("Ambiente 2");
		lblAmbiente.setFont(new Font("Tahoma", Font.PLAIN, 40));
		lblAmbiente.setBounds(303, 60, 223, 49);
		panelPrincipal.add(lblAmbiente);
		
		JButton btnEstgio = new JButton("Est\u00E1gio 02");
		btnEstgio.setBackground(Color.WHITE);
		btnEstgio.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio.setBounds(184, 146, 127, 80);
		panelPrincipal.add(btnEstgio);
		
		JButton btnEstgio_1 = new JButton("Est\u00E1gio 03");
		btnEstgio_1.setBackground(Color.WHITE);
		btnEstgio_1.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_1.setBounds(337, 146, 127, 80);
		panelPrincipal.add(btnEstgio_1);
		
		JButton btnEstgio_2 = new JButton("Est\u00E1gio 04");
		btnEstgio_2.setBackground(Color.WHITE);
		btnEstgio_2.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_2.setBounds(488, 146, 127, 80);
		panelPrincipal.add(btnEstgio_2);
		
		JButton btnEstgio_3 = new JButton("Est\u00E1gio 05");
		btnEstgio_3.setBackground(Color.WHITE);
		btnEstgio_3.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_3.setBounds(641, 146, 127, 80);
		panelPrincipal.add(btnEstgio_3);
		
		JButton btnEstgio_4 = new JButton("Est\u00E1gio 06");
		btnEstgio_4.setBackground(Color.WHITE);
		btnEstgio_4.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_4.setBounds(34, 252, 127, 80);
		panelPrincipal.add(btnEstgio_4);
		
		JButton btnEstgio_5 = new JButton("Est\u00E1gio 07");
		btnEstgio_5.setBackground(Color.WHITE);
		btnEstgio_5.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_5.setBounds(184, 252, 127, 80);
		panelPrincipal.add(btnEstgio_5);
		
		JButton btnEstgio_6 = new JButton("Est\u00E1gio 08");
		btnEstgio_6.setBackground(Color.WHITE);
		btnEstgio_6.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_6.setBounds(337, 252, 127, 80);
		panelPrincipal.add(btnEstgio_6);
		
		JButton btnEstgio_7 = new JButton("Est\u00E1gio 09");
		btnEstgio_7.setBackground(Color.WHITE);
		btnEstgio_7.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_7.setBounds(488, 252, 127, 80);
		panelPrincipal.add(btnEstgio_7);
		
		JButton btnEstgio_8 = new JButton("Est\u00E1gio 10");
		btnEstgio_8.setBackground(Color.WHITE);
		btnEstgio_8.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_8.setBounds(641, 252, 127, 80);
		panelPrincipal.add(btnEstgio_8);
		
		JButton btnEstgio_9 = new JButton("Est\u00E1gio 11");
		btnEstgio_9.setBackground(Color.WHITE);
		btnEstgio_9.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_9.setBounds(34, 358, 127, 80);
		panelPrincipal.add(btnEstgio_9);
		
		JButton btnEstgio_10 = new JButton("Est\u00E1gio 12");
		btnEstgio_10.setBackground(Color.WHITE);
		btnEstgio_10.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_10.setBounds(184, 358, 127, 80);
		panelPrincipal.add(btnEstgio_10);
		
		JButton btnEstgio_11 = new JButton("Est\u00E1gio 13");
		btnEstgio_11.setBackground(Color.WHITE);
		btnEstgio_11.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_11.setBounds(337, 358, 127, 80);
		panelPrincipal.add(btnEstgio_11);
		
		JButton btnEstgio_12 = new JButton("Est\u00E1gio 14");
		btnEstgio_12.setBackground(Color.WHITE);
		btnEstgio_12.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_12.setBounds(488, 358, 127, 80);
		panelPrincipal.add(btnEstgio_12);
		
		JButton btnEstgio_13 = new JButton("Est\u00E1gio 15");
		btnEstgio_13.setBackground(Color.WHITE);
		btnEstgio_13.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_13.setBounds(641, 358, 127, 80);
		panelPrincipal.add(btnEstgio_13);
		
		JButton btnEstgio_14 = new JButton("Est\u00E1gio 16");
		btnEstgio_14.setBackground(Color.WHITE);
		btnEstgio_14.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_14.setBounds(34, 464, 127, 80);
		panelPrincipal.add(btnEstgio_14);
		
		JButton btnEstgio_15 = new JButton("Est\u00E1gio 17");
		btnEstgio_15.setBackground(Color.WHITE);
		btnEstgio_15.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_15.setBounds(184, 464, 127, 80);
		panelPrincipal.add(btnEstgio_15);
		
		JButton btnEstgio_16 = new JButton("Est\u00E1gio 18");
		btnEstgio_16.setBackground(Color.WHITE);
		btnEstgio_16.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_16.setBounds(337, 464, 127, 80);
		panelPrincipal.add(btnEstgio_16);
		
		JButton btnEstgio_17 = new JButton("Est\u00E1gio 19");
		btnEstgio_17.setBackground(Color.WHITE);
		btnEstgio_17.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_17.setBounds(488, 464, 127, 80);
		panelPrincipal.add(btnEstgio_17);
		
		JButton btnEstgio_18 = new JButton("Est\u00E1gio 20");
		btnEstgio_18.setBackground(Color.WHITE);
		btnEstgio_18.setFont(new Font("Tahoma", Font.PLAIN, 18));
		btnEstgio_18.setBounds(641, 464, 127, 80);
		panelPrincipal.add(btnEstgio_18);
		
		JButton button = new JButton();
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
				TelaInicial tela=new TelaInicial();
				tela.setVisible(true);
				
			}
		});
		button.setIcon(new ImageIcon("C:\\Users\\Lucas Sampaio\\Workspace\\MontanhaDeChomsky\\Images\\voltar-icon.jpg"));
		button.setBorderPainted(false);
		button.setToolTipText("Minimizar");
		button.setForeground(Color.WHITE);
		button.setContentAreaFilled(false);
		button.setBackground(Color.WHITE);
		button.setAlignmentX(0.5f);
		button.setBounds(669, 11, 42, 38);
		panelPrincipal.add(button);
		
	}
}
